import Vue from 'vue'
import Router from 'vue-router'
import dgAdd from '@/components/dgAdd'
import dgSuccess from '@/components/dgSuccess'
import dgLogin from '@/components/dgLogin'
import dgList from '@/components/dgList'
import dgSelect from '@/components/dgSelect'
import commentList from '@/components/commentList'
Vue.use(Router);

export default new Router({
  routes: [
    {path: '/',name: 'dgList',component: dgList},
    {path: '/dgAdd',name: 'dgAdd',component: dgAdd},
    {path: '/dgAdd/:did',name: 'dgAdd2',component: dgAdd},
    {path: '/dgSuccess',name: 'dgSuccess',component: dgSuccess},
    {path: '/dgLogin',name: 'dgLogin',component: dgLogin},
    {path: '/dgSelect',name: 'dgSelect',component: dgSelect},
    {path: '/dgList',name: 'dgList2',component: dgList},
    {path: '/commentList',name: 'commentList',component: commentList}
  ]
})
